package cn.edu.zjut.Service;

import cn.edu.zjut.Bean.UserBean;

public class UserService implements IUserService {
    public boolean login(UserBean loginUser) {
        if (loginUser.getUsername().equals(loginUser.getPassword())){
            return true;
        }
        return false;
    }
    public boolean register(UserBean loginUser) {
        if (loginUser.getUsername().equals(loginUser.getPassword())&&loginUser.getPassword().equals(loginUser.getRepassword())){
            return true;
        }
        return false;
    }
}
